package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 【请填写功能名称】对象 price_sales
 *
 * @author ruoyi
 * @date 2024-09-17
 */
@Data
public class PriceSales extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 报价城市ID */
    @Excel(name = "报价城市ID")
    private Long priceCityId;

    /** 报价城市名称 */
    @Excel(name = "报价城市名称")
    private String priceCityName;

    /** 小时价格率 */
    @Excel(name = "小时价格率")
    private Double priceHourlyRate;

    /** 天价格利率 */
    @Excel(name = "天价格利率")
    private Double priceDailyRate;

    /** 是否有效（0初始、1有效） */
    @Excel(name = "是否有效", readConverterExp = "0=初始、1有效")
    private Integer status;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE).append("id", this.getId()).append("priceCityId", this.getPriceCityId())
                .append("priceCityName", this.getPriceCityName()).append("priceHourlyRate", this.getPriceHourlyRate())
                .append("priceDailyRate", this.getPriceDailyRate()).append("status", this.getStatus()).append("startDate", this.getStartDate())
                .append("endDate", this.getEndDate()).append("createTime", this.getCreateTime()).append("updateTime", this.getUpdateTime())
            .toString();
    }

    public static void main(String[] args) {
        System.out.println(new PriceSales());
    }
}
